package com.cmhi.base.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class SoftBroadcastReceiver extends BroadcastReceiver {
    private SoftBroadcastReceiverInterface softBroadcastReceiverInterface;
    public SoftBroadcastReceiver(SoftBroadcastReceiverInterface softBroadcastReceiverInterface) {
        this.softBroadcastReceiverInterface = softBroadcastReceiverInterface;
    }
    @Override
    public void onReceive(Context context, Intent intent) {
        if(this.softBroadcastReceiverInterface!=null){
            softBroadcastReceiverInterface.onReceive(intent);
        }
    }
}
